package com.polaris.live.widget

import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import android.widget.LinearLayout

/**
 * DisallowLinearLayout
 *
 * @author Created by lucas on 2023/11/28 18:37
 */
class DisallowLinearLayout(context: Context, attrs: AttributeSet?) : LinearLayout(context, attrs) {

    override fun dispatchTouchEvent(ev: MotionEvent?): Boolean {
        parent.requestDisallowInterceptTouchEvent(true)
        return super.dispatchTouchEvent(ev)
    }
}